package main;

import java.sql.Connection;


public class insert {
insert(){
	 try 
     {
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
          java.sql.Connection con[] = new Connection[100];
         String query = "insert into table2(Nom,Prenom) VALUES ('";
        // String query1 = "SELECT * FROM table2 t";
         String query1 ="insert into table1(Nom1,Cours) VALUES ('";
    	   MyThread m = new MyThread(query,1,con);
             m.start();
             MyThread m1 = new MyThread(query1,3,con);
             m1.start();
             
         
     }
     catch (java.lang.ClassNotFoundException e) 
     {
         System.err.print("ClassNotFoundException: ");
         System.err.println(e.getMessage());            
     }
     
 
}
public static void main(String[]args){
	new  insert();
}
}
